<?php

namespace app\admin\validate;

use app\common\enums\StatusEnum;
use think\Validate;

class TieBaType extends Validate
{
    protected $rule = [
        'name|版块分类' => 'require|length:1,20|unique:tie_ba_type',
        'sort_num|权重' => 'require|number',
        'status' => 'in:' . StatusEnum::DISABLED . ',' . StatusEnum::ENABLED,
    ];
}